package com.haogu.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_crm_announcement")
public class Announcement {
    @TableId(type = IdType.AUTO)
    private Integer id;//文章编号
    @TableField("order_id")
    private Integer orderId;//排序
    @TableField("user_id")
    private Integer userId;//发表人
    private String title;//标题
    private String content;//内容
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;//创建时间
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;//更新时间
    private String color;//颜色
    private String department;//通知部门
    private Integer status;//是否发布
    private Integer isshow;//是否公开
    @TableLogic
    @TableField("delete_status")
    private Integer deleteStatus;//删除状态

    private String name;//通知部门(部门表)
}
